class CreateEnterItems < ActiveRecord::Migration
  def self.up
    create_table :enter_items do |t|
      t.integer :order_made_id,
        :order_id,
        :order_item_id,
        :installation_id,
        :install_item_id,
        :furniture_id,
        :order_made_item_id,
        :furniture_logistic_stat_id        
      t.integer :entered_count, :default => 0  
      t.date :entered_on
      t.string :package_codes      
      t.text :remark
      t.integer :feed_id
      t.timestamps
    end
  end

  def self.down
    drop_table :enter_items
  end
end
